﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;
using System.Data.SqlClient;

namespace DAO
{
    public partial class CTPhanCong_DAO
    {
        public bool ThemMoiPhanCong(CTPhanCong ctpc)
        {
            DataProvider dp = new DataProvider();
            SqlParameter[] Parameter = new SqlParameter[4];

            Parameter[0] = new SqlParameter("@MaPhanCong", ctpc.MaPhanCong);
            Parameter[1] = new SqlParameter("@NgayPhanCong", ctpc.NgayPhanCong);
            Parameter[2] = new SqlParameter("@MaCa", ctpc.MaCa);
            Parameter[3] = new SqlParameter("@MaNV", ctpc.MaNV);
            return dp.ExecutenonQuery("ThemChiTietPhanCong", Parameter);
        }
    }
}
